/**
 * @file: service.js
 * @description:
 * @author: YUWENJING
 * @date: 2020/2/16
 * @contact:wenjingyuer@126.com
 */

import Taro from "@tarojs/taro";
import {goHome, toast} from "../../../utils";
const db = Taro.cloud.database();
const _ = db.command

export  function saveFeedback(concat,feedback) {
  db.collection('feedBack')
    .add({
      data:{
        concat,
        feedback
      },
      success:res => {
        Taro.navigateBack()
      }
    })
}
